package com.enqualcomm.kids.config;

import android.net.Uri;

import com.enqualcomm.kids.BuildConfig;


/**
 * Created by yinzhiqun on 2015/11/3.
 *
 */
public class ImageUriFactory {

    private static final String PREFIX = BuildConfig.API_URL+"/source?cmd=getfile&version=1.0&j=";

    public static Uri getUri(String filename){
        return  Uri.parse(PREFIX+filename);
    }

    public static Uri getAssetsUri(String filename){
        return  Uri.parse("asset:///"+filename);
    }

    public static Uri getFileUri(String filename){
        return  Uri.parse("file:///"+filename);
    }

    public static Uri getResUri(int resId){
        return Uri.parse("res:///"+resId);
    }

}
